import React from 'react'
import MyTextInput from './MyTextinput'
class AutoFocusTextInput extends React.Component{
  constructor(props) {
    super(props)
    this.ref = React.createRef()
  }
 componentDidMount() {
    this.ref.current.focusText()
  }
  render() {
    return (
      <MyTextInput {...this.props} ref={ this.ref}/>
    )
  }
}
export default AutoFocusTextInput